package com.movies.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by chemeng on 2017/3/6.
 */
@Controller
@RequestMapping("/home")
public class HomeController {
    // 日志
    private  static final Logger logger = LoggerFactory.getLogger(HomeController.class);

    @RequestMapping(value = {"/","/index"})
    public String index(){
        logger.info("返回首页");
        return "index";
    }
}
